package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.dto.DishDto;

import java.util.List;

/**
 * @author 刘付磊
 * @date 2021/10/17 0017
 */

public interface DishService extends IService<Dish> {
    public void saveWithFlavor(DishDto dishDto);

    public R<IPage<Dish>> page(String name, int page, int pageSize);

    public DishDto getByIdWithFlavor(Long id);

    public void upDateWithFlavor(DishDto dishDto);

    //public R<List<Dish>> list( Dish dish);
    public R<List<DishDto>> list( Dish dish);

    public void statusBy(String ids);

    public R<String> dtIds(Long[] ids);

}
